package com.heisenhub.common.db.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

public enum IsDelEnum implements IEnum<Integer> {
    NORMAL(0, "正常"),
    DELETE(1, "删除");
    ;

    @EnumValue
    @JsonValue
    private Integer code;
    private String desc;
    IsDelEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }


    @Override
    public Integer getValue() {
        return code;
    }
}
